package com.rd.student.jiaji.class4.suyan.zrrd.day08;

public class TeacherText {
    public static void main(String[] args) {
        //创建一个讲师类
        Teacher t=new Teacher();
        //给讲师类属性赋值-----》讲师类继承父类中的name和age属性
        t.age=30;
        t.name="李四";
        t.sleep();
        System.out.println("姓名："+t.name);
        System.out.println("年龄"+t.age);
        t.printNameAndAge();

    }
}
